<div id="app">
    <button v-on:click="show()">查询</button>

    <!-- v-on 指令的简写形式 @ -->
    <button @click="show()">查询1</button>
</div>

<script src="./lib/vue-2.6.12.js"></script>
<script>
    new Vue({
        el: '#app',
        methods: {
            show() {
                console.log(new Date())
            }
        }
    })
</script>